<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数组循环for...of/for..in</title>
</head>
<body>


<script>
   let list=[10,20,30];

   for (let a of list)
       console.log(a);//a是数组里的值
   for (let a in list)
       console.log(a,list[a]);//a是索引
</script>
</body>
</html>
